<template>
	<view class="container">
		<view><web-view :src="url"></web-view></view>
	</view>
</template>

<script setup lang="ts">
import { onLoad, onShareAppMessage } from '@dcloudio/uni-app';
import { ref } from 'vue';
const url = ref('');
/*小程序分享*/
onShareAppMessage(() => {
	return {
		path: '/pages/index/webview?url=' + url.value,
		title: '网页详情',
		success: e => {}
	};
});
onLoad((option: any) => {
	url.value =decodeURIComponent(option.url) 
});
</script>

<style scoped>
.cu-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}
web-view {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}
</style>
